# This demonstration script creates a listbox widget that displays
# the names of the 50 states in the United States of America.
#
# SCCS: @(#) states.tcl 1.4 97/03/02 16:27:37
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
}
set w .states
catch {destroy $w}
toplevel $w
wm title $w "Listbox Demonstration (50 states)"
wm iconname $w "states"
positionWindow $w
label $w.msg -font $font -wraplength 4i -justify left -text "A listbox containing the 50 states is displayed below, along with a scrollbar. You can scan the list either using the scrollbar or by scanning. To scan, press button 2 in the widget and drag up or down."